package edu.sctu.jsoup.repo;

import edu.sctu.jsoup.entity.AllBbsEntity;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface AllBbsRepo extends CrudRepository<AllBbsEntity, Long> {

    List<AllBbsEntity> findAll();

    List<AllBbsEntity> findByUrl(String url);
    List<AllBbsEntity> findById(long count);
    List<AllBbsEntity> findByTitle(String title);
    List<AllBbsEntity> deleteAllByTitle(List<AllBbsEntity> byTitle);
}
